package org.studle.domain;

import java.util.ArrayList;


public class Course extends Event {

	private ArrayList<Event> events;
	
	public Course(String name, String description){
		super(name, description);
		events = new ArrayList<Event>();
	}

	public Course addEvent(Event event){
		if (event == null) throw new IllegalArgumentException("Event doesn't exist");
		
		events.add(event);
		return this;
	} 
}
